/*
 * @Author: fisher
 * @Date: 2024-02-05 23:12:19
 * @LastEditors: fisher luthor-li@qq.com
 * @LastEditTime: 2024-02-26 10:39:00
 * @FilePath: \allback\routes\index.js
 * @Description: koa router
 */
// routes/index.js
const Router = require('koa-router')
const router = new Router()
const indexController = require('../controllers/indexController')
router.get('/', ctx => {
  // 故意抛出一个错误
  ctx.body = 'qbbmnn'
})
router.get('/getSysInfo', indexController.getSysInfo)
router.get('/getGpuInfo', indexController.getGpuInfo)
module.exports = router
